home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / bratz-estilista.swf / scripts / DefineSprite_890 / frame_1 / DoAction.as
Text File  |  2008-03-17  |  1KB  |  35 lines

  1. function refresh()
  2. {
  3.    BratzLined.gotoAndStop(_global.charImage.character);
  4.    BratzLined.Bratz.gotoAndStop("filled");
  5.    BratzLined.Dresses.gotoAndStop(_global.charImage.Dresses.Dresses);
  6.    BratzLined.Dresses.Dresses.gotoAndStop(_global.charImage.Dresses.Alt);
  7.    restore("Dresses");
  8.    BratzLined.Tops.gotoAndStop(_global.charImage.Tops.Tops);
  9.    BratzLined.Tops.Tops.gotoAndStop(_global.charImage.Tops.Alt);
  10.    restore("Tops");
  11.    BratzLined.Bottoms.gotoAndStop(_global.charImage.Bottoms.Bottoms);
  12.    BratzLined.Bottoms.Bottoms.gotoAndStop(_global.charImage.Bottoms.Alt);
  13.    restore("Bottoms");
  14.    BratzLined.Bags.gotoAndStop(_global.charImage.Bags.Bags);
  15.    restore("Bags");
  16.    BratzLined.Shoes.gotoAndStop(_global.charImage.Shoes.Shoes);
  17.    restore("Shoes");
  18. }
  19. function restore(item)
  20. {
  21.    for(var _loc3_ in _global.charImage[item].Colors)
  22.    {
  23.       BratzLined[item][item][_loc3_].restore(_global.charImage[item].Colors[_loc3_]);
  24.    }
  25. }
  26. var birth = getTimer();
  27. onEnterFrame = function()
  28. {
  29.    refresh();
  30.    if(getTimer() > birth + 500)
  31.    {
  32.       delete onEnterFrame;
  33.    }
  34. };
  35.